//
//  ArecView.m
//  DrawArc
//
//  Created by Misheral on 15/7/1.
//  Copyright (c) 2015年 lifecycle. All rights reserved.
//

#import "ArecView.h"

@implementation ArecView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)drawRect:(CGRect)rect{
    [super drawRect:rect];
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextSetRGBStrokeColor(context,1,1,1,1.0);//画笔线的颜色
    
    CGContextSetLineWidth(context, 5.0);
    CGContextAddArc(context, 50, 50, 30, 0, M_PI, 0);
    [[UIColor redColor] setFill];
    CGContextDrawPath(context, kCGPathStroke);
}

@end
